package com.yugao.fintech.antelope.codegen.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yugao.fintech.antelope.codegen.core.TableDefinition;
import com.yugao.fintech.antelope.codegen.model.entity.DatasourceConfig;
import com.yugao.fintech.antelope.codegen.model.rqrs.DatasourceConfigQuery;
import com.yugao.fintech.antelope.codegen.model.rqrs.DatasourceRS;
import com.yugao.fintech.antelope.codegen.model.rqrs.DbTableRQ;

import java.util.List;


public interface DatasourceConfigService {
    DatasourceConfig getById(Long id);

    List<DatasourceRS> listAll();

    void save(DatasourceConfig datasourceConfig);

    void update(DatasourceConfig datasourceConfig);

    void delete(DatasourceConfig datasourceConfig);

    IPage<DatasourceConfig> page(DatasourceConfigQuery req);

    List<TableDefinition> listTable(DbTableRQ req);

    void deleteBatchByIds(List<Long> ids);
}
